package main

import (
	"fmt"
	"reflect"
)

/*===reflect.TypeOf()获取任意值的类型===
 */
func main() {
	var a float32 = 3.14
	var b float64 = 100
	reflectType(a)
	reflectType(b)
}
func reflectType(x interface{}) {
	v := reflect.TypeOf(x)
	fmt.Printf("type:%v\n", v)
}
